import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Recarga here.
 * 
 * @author Alejandro Caldera
 * @version (a version number or a date)
 */
public class Recarga extends Items
{
    /**
     * Act - do whatever the Recarga wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
       //Detecta si recibe bala y la borra
          Actor bullet=getOneIntersectingObject(Bullet.class);
        if(bullet!=null)
      {
          
         
       
          getWorld().removeObject(bullet);
          
          
        }
    }    
}
